// ==========================================================================
// gin-sns 自动生成路由代码，只生成一次，按需修改,再次生成不会覆盖.
// date：2021-02-21 13:45:54 +0800 CST
// path: app/controller/module/unlike_router.go
// author：jon
// ==========================================================================
package module

import (
	//"gin-sns/app/controller/module"
	"gin-sns/app/ginframe/router"
	"gin-sns/app/service/middleware/auth"
)

//加载路由
func init() {
	// 参数路由
	g1 := router.New("admin", "/module/unlike", auth.Auth)
	g1.GET("/", "module:unlike:view", UnlikeController.List)
	g1.POST("/list", "module:unlike:list", UnlikeController.ListAjax)
	g1.GET("/add", "module:unlike:add", UnlikeController.Add)
	g1.POST("/add", "module:unlike:add", UnlikeController.AddSave)
	g1.POST("/remove", "module:unlike:remove", UnlikeController.Remove)
	g1.GET("/edit", "module:unlike:edit", UnlikeController.Edit)
	g1.POST("/edit", "module:unlike:edit", UnlikeController.EditSave)
	g1.POST("/export", "module:unlike:export", UnlikeController.Export)
}
